include ../../../makefile.inc


TARGETS=socket_client

INCLUDES := $(INCLUDES) -I../protocol

BASE_LIBS := $(BASE_LIBS) -L$(DIR_PROJECT)/ -lsocket -lthread -lpthread -L../protocol/ -lprotocol

SRCS=$(wildcard *.cpp)
OBJECTS=$(patsubst %.cpp,%.o,$(SRCS)) 
OBJECTS_SERVER=$(OBJECTS)

all: $(TARGETS) 

$(TARGETS): $(OBJECTS_SERVER)
	$(CXX)  $(CXXFLAGS) -o $@  $^ $(BASE_LIBS) 
	mv socket_client socket_client.s
	ln -sf socket_client.s socket_client

clean:
	$(RM) *.o 

